var rpio = require('rpio');

function mpu6050Init() {
   rpio.i2cBegin();
   rpio.i2cSetSlaveAddress(0x68);
   rpio.i2cSetBaudRate(10000); // 100kHz
   rpio.i2cSetClockDivider(2500);
   var PWR_MGMT_1 = Buffer.from([0x6b]);
   var PWR_MGMT_1 = Buffer.from([0x6b]);
   var PWR_MGMT_1 = Buffer.from([0x6b]);
   rpio.i2cWrite(PWR_MGMT_1);           
   rpio.msleep(1000);
   rpio.i2cRead(rxbuf, 16);
   rpio.i2cEnd();
   console.log('rxbuf = ' + JSON.stringify(rxbuf));
}
function getData(){

}
blink();
